class Image:
    __doc__=""" 
A class to hold image objects
    
Fields:
    src - image source
    width,height - image width and height (integer values)
    align - alignment
           
Constants:
    ALIGN_LEFT=0
    ALIGN_RIGHT=1
    ALIGN_CENTER=2
    all the above are used as values for the 'align' field
    
Methods:
    __init__(src,width,height,align) - constructor, accepts 0-4 paramaters
    self_print() - prints image data on the console
    
Future improvements:
    Possibly, a method which returns a PyGTK paintable object.
    If it were Java, it would have proabably been called paint(Graphics g)
""" 
    ALIGN_LEFT=0
    ALIGN_RIGHT=1
    ALIGN_CENTER=2
    
    def __init__(self,src='',width=0,height=0,align=ALIGN_CENTER):
        #Constructor - handles default values as well
        self.src=src
        self.width=width
        self.height=height
        self.align=align
    
    def self_print(self):
        #Prints the image data on the console
        print '[',self.src,'(',self.width,self.height,self.align,')]'
